using System.Collections;
using System.Collections.Generic;
using UnityEngine;

namespace Main.UI
{
    public class UI_Menu : MonoBehaviour
    {
        public Transform[] panels;
        public void SwitchPanels(int index)
        {
            for (int i = 0; i < panels.Length; i++)
            {
                if (i == index)
                {
                    panels[i].SetAsLastSibling();
                }
            }
        }

        public void ExitGame()
        {
            Application.Quit();

        }
    }
}